﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Pattern_Singleton
{
    class Program
    {
        static void Main(string[] args)
        {
            Singleton s1 = Singleton.getInstance();
            s1.Display();

            Singleton s2 = Singleton.getInstance();
            s2.Display();

            if (s1.Equals(s2))
            {
                Console.WriteLine("They are one object");
            }
        }
    }
}
